dividing polynomials with missing powers